<template>
  <div>
    <Button @click="toIcbc">工行</Button>
    <form name="auto_submit_form" method="post" :action="baseUrl">
      <input type="hidden" name="interfaceName" value="ICBC_IIAccount_Mange" />
      <input
        type="hidden"
        name="biz_content"
        value="NH6tsf+AhtCO0qta3Cfpug75wNLBeMwS3+xkGVH4AZbOw53KWvjo5hAy66WQRsrruFZ+rmCEtL7pGIzbLzHe43+VR5avsbeFNbVd
iy81JR8tF78UAV2+8RwHVf9lWF3eEWGwjL/MJX0R9akYogZ5MPKlagNlbooqvN1xl/23urkoipTDySzmoP/B3RadlXIcARw3NcvwEy5VjOu
xTLJB3wH4yS+QoQ/yKxfxkje4r67UmcBu5rHbbgUslD0u63MbX82fyMITQR90B7eN0CK2XDxMozUhG9yZiL7Fa7LLLKz4RzeXPeb0MPNC/1
0VVo/DjnkCZ3Tj6e9DmfbkjaxqIFskAvGoQGuZeOWSbHThpbY="
      />
      <input type="submit" value="立刻提交" />
    </form>
  </div>
</template>

<script lang="ts">
import { Vue, Component } from 'vue-property-decorator'
import { icbcEaccount } from '../../api/api_icbc'
@Component
export default class Icbc extends Vue {
  private baseUrl = `https://apipcs3.dccnet.com.cn/ui/eaccount/manage/V1?
      encrypt_type=AES&timestamp=2019-01-
      28+09%3A16%3A52&format=json&app_id=10000000000000194512&msg_id=8546e630625e4f3a980c27f05a0965dd&sign_type=R
      SA&charset=UTF-
      8&sign=fBD3Q5Inz%2Fw%2B3v25Hk0amXvRrWJHCSThiU%2Bj%2F%2BFAHth%2FFOGzyn2GYFDoPw9dvgBxFJ53bwzfRUiGuiu9fMd%2B9e
      yyF6sOuvXK1XcQSuXd66hJk85AYEuKYD%2FXi0eJtepY4r7XY0SuLpEAts0H0iZWDxqh0ZaJmvO2vz9D98aZQYg%3D`
  private toIcbc() {
    const p = {}
    icbcEaccount(p).then(res => {
      console.log(res)
    })
  }
}
</script>

<style></style>
